import Vue from 'vue'
import Router from 'vue-router'
const infsPage = ()=>import(/*webpackChunkName:'infs'*/ '@/pages/information')
const linksPage = ()=>import(/*webpackChunkName:'links'*/ '@/pages/links')
const qunLiaoPage = ()=>import(/*webpackChunkName:'qunliao'*/ '@/pages/qunliao')
const chatsPage = ()=>import(/*webpackChunkName:'chats'*/ '@/pages/chats')
Vue.use(Router)

export default new Router({
	mode:"history",
  	routes: [
  		{
	  		path:'/',
	  		component:linksPage,
	  		children:[
	  			{
	  				path:'links',
	  				component:linksPage
	  			}
	  		]  			
  		},
  		{
  			path:'/infs',
  			component:infsPage
  		},
  		{
  			path:'/wechat',
  			component:qunLiaoPage
  		},
      {
        path:'/chats/:id',
        name:"chats",
        component:chatsPage
      }
  	]
})
